<% content_for :sidebar do -%>
<h3 class="nt">每月已认证的学校 <%= title_suffix %></h3>
<% School.archives.each do |month| %>
	<a href="/schools/date/<%= "#{month[:year]}/#{"%02i" % month[:month]}" %>">
		<%= month[:name] %>
	</a>
	<em>（<%= month[:delta] %>所学校）</em> <br />
<% end %>

<h3 class="nt">每月待认证的学校 <%= title_suffix %></h3>
<% School.archives(false).each do |month| %>
	<a href="<%= "/schools/date/#{month[:year]}/#{"%02i" % month[:month]}?valid=false" %>">
		<%= month[:name] %>
	</a>
	<em>（<%= month[:delta] %>所学校）</em> <br />
<% end %>
<% end -%>

<h1>最近30天新增学校列表</h1>
<p>最近30天一共 <%= @schools.size %> 所新增学校</p>
<table border="0" cellspacing="0" cellpadding="3" class="left ol">
  <tr>
    <th>学校名称</th>
    <th>上传日期</th>
  </tr>
  

<% @schools.each do |school| -%>
    <tr>
      <td><%= link_to school.title, school_url(school.id) %></td>
      <td><%= show_date school.created_at %></td>
    </tr>
    
<% end -%>
</table>